<?php $this->load->view('_inc/header_popup')?>

<h1>Novo Voluntariado</h1>
<?php echo form_open('voluntariado/cadastrandoVoluntariado')?>
<table>
    
    <tr>
        <td>
            <?php echo form_label('Membro:','imembro')?>
            <?php if(isset($dropMembros)){ ?>
                <?php echo form_dropdown('membro',$dropMembros,'','id=imembro')?>
            <?php } else{ ?>
                <?php echo $membro->nome_membro?>
                <?php echo form_hidden('membro',$membro->id)?>
            <?php }?>
        </td>
    </tr>
    
    <tr>
        <td>
            <?php echo form_label('Nome:','inome')?>
            <?php echo form_input('voluntariado','','id=inome autofocus')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Data:','idata')?>
            <?php echo form_input('data','','id=idata')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_label('Tipo:','itipo')?>
            <?php echo form_dropdown('tipo',$dropTipos,'','id=itipo')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_submit('', 'Cadastrar')?>
            <?php echo form_button('', 'Cancelar','class=cancela')?>
        </td>
    </tr>
</table>
<?php echo form_close()?>